package com.pojo;

/**
 * @Author WaveHi
 * @Date 20/7/2021 下午 1:28
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 用户的信息
 */
public class User {

    private Integer id;//用户id
    private String name;//用户姓名
    private Integer age;//用户年龄
    private Character sex;//性别
    private String address;//地址
    private String email;//邮件
    private String identity;//用户身份

    public User() {
    }

    public User(String name, Integer age, Character sex, String address, String email, String identity) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.address = address;
        this.email = email;
        this.identity = identity;
    }

    public User(Integer id, String name, Integer age, Character sex, String address, String email, String identity) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.address = address;
        this.email = email;
        this.identity = identity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Character getSex() {
        return sex;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public Integer getId() {
        return id;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", address='" + address + '\'' +
                ", email='" + email + '\'' +
                ", identity='" + identity + '\'' +
                '}';
    }
}
